package com.multi.thread.chapter03.demo10;

public class ThreadProduct extends Thread {
	
	private Product product;

	public ThreadProduct(Product product) {
		this.product = product;
	}
	
	@Override
	public void run() {
		while (true) {
			product.setValue();
		}
	}

}
